package com.dengpp.pdform.model;

import java.io.Serializable;

public class MediaFile implements Serializable {
    private String path;//文件地址
    private MediaType type;//文件类型
    private String thumbnail;//缩略图地址
    private String name;//文件名
    private LocationInfo locationInfo; // 新增位置信息

    public enum MediaType {
        IMAGE, VIDEO
    }
    // 必须有无参构造函数
    public MediaFile() {}
    public MediaFile(String path, MediaType type) {
        this.path = path;
        this.type = type;
    }

    public MediaFile setThumbnail(String thumbnail) {
        this.thumbnail = thumbnail;
        return this;
    }

    public MediaFile setName(String name) {
        this.name = name;
        return this;
    }

    public LocationInfo getLocationInfo() {
        return locationInfo;
    }

    public MediaFile setLocationInfo(LocationInfo locationInfo) {
        this.locationInfo = locationInfo;
        return this;
    }

    // Getters
    public String getPath() {
        return path;
    }

    public MediaType getType() {
        return type;
    }

    public String getThumbnail() {
        return thumbnail;
    }

    public String getName() {
        return name;
    }
}
